package com.peakmain.wanandroid.netmodule.di.component;

import android.app.Activity;
import android.content.Context;

import com.peakmain.wanandroid.netmodule.di.scop.ContextLife;
import com.peakmain.wanandroid.netmodule.di.scop.PerFragment;
import com.peakmain.wanandroid.netmodule.di.module.FragmentModule;

import dagger.Component;

/**
 * author: peakmain
 * createdata：2019/7/10
 * mail: 2726449200@qq.com
 * desiption:
 */
@PerFragment
@Component(dependencies = ApplicationComponent.class,modules = FragmentModule.class)
public interface FragmentComponent {
    @ContextLife("Activity")
    Context getAcitivtyContext();
    @ContextLife("Application")
    Context getApplicationContext();

    Activity getAcitivty();

}